[gd_scene load_steps=7 format=3 uid="uid://dpr28dtsilg7d"]

[ext_resource type="Script" path="res://player.gd" id="1_t3wqe"]
[ext_resource type="Script" path="res://Scripts/smoky.gd" id="3_1ipiq"]
[ext_resource type="ArrayMesh" uid="uid://b4newna8xuxae" path="res://Assets/Models/wasp.res" id="3_qgisc"]
[ext_resource type="ArrayMesh" uid="uid://b15kfe5xv17x6" path="res://Assets/Models/smoky.res" id="4_kjf15"]
[ext_resource type="AudioStream" uid="uid://dsjjw1rvty5hc" path="res://Assets/Sounds/smoky_shot.mp3" id="5_lfb7x"]

[sub_resource type="ConvexPolygonShape3D" id="ConvexPolygonShape3D_j3too"]
points = PackedVector3Array(0.7, 0.549971, 1.19977, 0.7, 0.299946, 1.19977, 0.699863, 0.699985, -1.15, 0.699863, 0.699985, 0.399951, 0.699863, 0.64998, 0.999873, -0.500059, 0.549971, 1.2, -0.500059, 0.299946, 1.2, 0.699863, 0.0440143, 0.75995, 0.699863, 0, 0.399951, 0.699863, 0, -1.00002, 0.699863, 0.0845341, -1.07501, 0.699863, 0.299946, -1.15, -0.7, 0.699985, -1.15, 0.499922, 0.85, -1.00002, 0.499922, 0.85, 0.399951, -0.7, 0.64998, 0.999873, -0.7, 0.549971, 1.2, -0.7, 0.299946, 1.2, -0.7, 0.0440143, 0.75995, -0.7, 0, 0.399951, -0.500059, 0, -1.07501, -0.7, 0.299946, -1.15, -0.7, 0.699985, 0.399951, -0.500059, 0.85, -1.00002, -0.500059, 0.85, 0.399951, -0.7, 0, -1.07501)

[node name="player" type="Node"]
script = ExtResource("1_t3wqe")

[node name="body" type="VehicleBody3D" parent="."]
transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 0, 0, 0)

[node name="MeshInstance3D" type="MeshInstance3D" parent="body"]
mesh = ExtResource("3_qgisc")

[node name="CollisionShape3D" type="CollisionShape3D" parent="body"]
shape = SubResource("ConvexPolygonShape3D_j3too")

[node name="R1" type="VehicleWheel3D" parent="body"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.603845, 0.271845, -0.69379)
use_as_traction = true
wheel_radius = 0.3
wheel_friction_slip = 1.5
suspension_travel = 0.1
suspension_stiffness = 35.0
damping_compression = 0.9
damping_relaxation = 0.95

[node name="R2" type="VehicleWheel3D" parent="body"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.603845, 0.271845, 0.00121617)
use_as_traction = true
wheel_radius = 0.3
wheel_friction_slip = 1.5
suspension_travel = 0.1
suspension_stiffness = 35.0
damping_compression = 0.9
damping_relaxation = 0.95

[node name="R3" type="VehicleWheel3D" parent="body"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.603845, 0.271845, 0.643751)
use_as_traction = true
wheel_radius = 0.3
wheel_friction_slip = 1.5
suspension_travel = 0.1
suspension_stiffness = 35.0
damping_compression = 0.9
damping_relaxation = 0.95

[node name="L1" type="VehicleWheel3D" parent="body"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.604412, 0.271845, -0.69379)
use_as_traction = true
wheel_radius = 0.3
wheel_friction_slip = 1.5
suspension_travel = 0.1
suspension_stiffness = 35.0
damping_compression = 0.9
damping_relaxation = 0.95

[node name="L2" type="VehicleWheel3D" parent="body"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.604412, 0.271845, 0.00121617)
use_as_traction = true
wheel_radius = 0.3
wheel_friction_slip = 1.5
suspension_travel = 0.1
suspension_stiffness = 35.0
damping_compression = 0.9
damping_relaxation = 0.95

[node name="L3" type="VehicleWheel3D" parent="body"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.604412, 0.271845, 0.643751)
use_as_traction = true
wheel_radius = 0.3
wheel_friction_slip = 1.5
suspension_travel = 0.1
suspension_stiffness = 35.0
damping_compression = 0.9
damping_relaxation = 0.95

[node name="turret" type="Node3D" parent="body"]
transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, -6.21941e-09, 0.85, -0.399858)
script = ExtResource("3_1ipiq")

[node name="Smoky" type="MeshInstance3D" parent="body/turret"]
transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 0, 0, 0)
mesh = ExtResource("4_kjf15")

[node name="AimRay" type="RayCast3D" parent="body/turret"]
transform = Transform3D(4, 0, 0, 0, 4, 0, 0, 0, 4, 0, 0.118692, -1.62469)
target_position = Vector3(0, 0, -100)
collide_with_areas = true

[node name="CooldownTimer" type="Timer" parent="body/turret"]
wait_time = 1.5
one_shot = true

[node name="SmokyShotAudio" type="AudioStreamPlayer3D" parent="body/turret"]
stream = ExtResource("5_lfb7x")

[node name="Camera3D" type="Camera3D" parent="body"]
transform = Transform3D(-1, -2.54125e-08, 8.36478e-08, 0, 0.956819, 0.290686, -8.74228e-08, 0.290686, -0.956819, 2.45283e-07, 2, -2.80571)

[node name="MultiplayerSynchronizer" type="MultiplayerSynchronizer" parent="."]
root_path = NodePath("../body")

[connection signal="timeout" from="body/turret/CooldownTimer" to="body/turret" method="_on_cooldown_timer_timeout"]
